import { FObject } from "../../Support/FObject";

export default class ConfigVO extends FObject{

    private _config : any = {
        zjh: {
            name:"扎金花",
            list:{
                mode:{
                    title:"类别",
                    type:"mode",
                    check:false, //是否可以单选多选
                    Line:true,
                    data:[{title:"经典玩法",value:1},{title:"轮庄玩法",value:2}]
                },

                round:{
                    title:"局数",
                    type:"round",
                    check:false, //是否可以单选多选
                    Line:true,
                    data:[{title:"8局",value:1},{title:"16局",value:2},{title:"32局",value:3}]
                },

                money:{
                    title:"付费",
                    type:"money",
                    check:false, //是否可以单选多选
                    Line:true,
                    data:[{title:"AA制",value:1},{title:"房主付费",value:2}]
                },

                player:{
                    title:"人数",
                    type:"player",
                    check:false, //是否可以单选多选
                    Line:true,
                    data:[{title:"四人",value:1},{title:"三人",value:2},{title:"二人",value:3}]
                },

                double:{
                    title:"翻倍",
                    type:"double",
                    check:false, //是否可以单选多选
                    Line:true,
                    data:[{title:"13台番",value:1},{title:"10台番",value:2},{title:"15台番",value:3}]
                },

                custom:{
                    title:"玩法",
                    type:"custom",
                    check:true, //是否可以单选多选
                    Line:true,
                    data:[{title:"四人",value:1},{title:"三人",value:2},{title:"二人",value:3}]
                },
            }
        },
        // ddz:{},
        // scmj:{},
    };
    /**
     * get config 
     */
    public get deskConfig () : any {
        return this._config
    }

    public set deskConfig(v : any){
        this._config = v
    }

    public getGameConfig(s:string) : any {
        if(this._config == null)return null
        return this._config[s]
    }
}